import Vue from 'vue'
import Router from 'vue-router'
import Index from '@/pages/index'
import Home from "@/pages/home"
import Artists from "@/pages/artists"
import ListCate from "@/pages/listcate"
import Ucenter from "@/pages/ucenter"
import Search from "@/pages/search"
import HotList from "@/pages/musiclist/host_list"
import NewsList from "@/pages/musiclist/news_list"
import KingList from "@/pages/musiclist/king_list"

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'Index',
      redirect:"/home",
      component: Index,
      children:[
        {
          path:"home",
          component:Home,
          redirect:"/home/hot",
          children: [
						{
					    path: "hot",
						  component:HotList,
					},
						{
					    path: "news",
						  component:NewsList,
					},
						{
					    path: "king",
						  component:KingList,
					},
					]
            },
        {
          path:"artists",
          component:Artists
        },
        {
          path:"listcate",
          component:ListCate
        },
        {
          path:"ucenter",
          component:Ucenter
        },
        {
          path:"search",
          component:Search
        },
      ]
		}
  ]
})
